ends with
Type
operator
Summary
The ends with operator takes two strings and returns true if the second string matches the end of the first string.
Syntax
<string> ends with <suffix>
Description
For the expression to evaluate to true suffix must match the end of string. For example, if suffix contains three characters these must match the the last three characters of string (in order).
This takes into consideration the value of the caseSensitive property.
Parameters
Name | Type | Description |
---|---|---|
string | string | |
suffix |
Examples
"foobar" ends with "bar" -- evaluates to true
"foobar" ends with "baz" -- evaluates to false
Related
glossary: property
operator: begins with, contains
property: caseSensitive
Compatibility and Support
Introduced
LiveCode 2.9
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile